using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PDF;

public partial class ConsumeControl : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        //Get the name of the Web Resource
        String rsname = "SimpleControl.MyStyleSheet.css";

        //Get the type of the class
        Type rstype = typeof(SimpleControl.MSButton);

        // Get a ClientScriptManager reference from the Page class.
        ClientScriptManager cs = Page.ClientScript;
        lnkStyle.Href = cs.GetWebResourceUrl(rstype, rsname);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        //MSButton2.bBold = !MSButton2.bBold;
        //MSButton2.strText = MSButton2.Style.Keys;

        //foreach (Control control in this.Controls)
        //{
        //    if (control.ClientID.Contains("form"))
        //    {
        //        foreach (Control control1 in control.Controls)
        //        {
        //            MSButton2.strText += control1.ClientID + "___";
        //        }
        //    }
        //}
        //MSButton2.strText = MSButton2.Attributes["fontWeight"];
        // Create a temporary file
        Draw draw = new Draw();
        draw.DrawFile(this.Controls);


    }
}
